import http from '@/http';
import type { ResponseData } from '@/types/interface';

const agentApi = {
    // 文件上传
    uploadFile: (filePath: string): Promise<ResponseData<{ fileName: string; url: string }>> => {
        return http.upload('/agent/service/upload', {
            filePath,
            name: 'file'
        });
    }
};

export default agentApi;